package com.xxgc.cloud.auth.springcloudauth;

import com.xxgc.cloud.common.redis.EnableRedisClient;
import com.xxgc.cloud.error.center.EnableErrorCenter;
import config.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
/**
 * 打开错误中心 dev何test会返回详细错误，prod不会
 * spring:profiles:active: prod
 */
@EnableErrorCenter
@EnableRedisClient
@EnableCustomSwagger2
public class SpringCloudAuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudAuthApplication.class, args);
    }

}
